package cate.game.pvp.ladder.msg;

import cate.game.GameBody;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInputTemplate;
import cate.game.client.msg.id.MsgIdBLadder;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "天梯 对手阵容 请求")
public class LadderOppoDetailReq extends MsgInputTemplate {

    @NoteField("挑战对手的ID")
    public String opponentId;

    @NoteField("是否机器人")
    public boolean robot;

    @NoteField("服务器id")
    public int srvId;
    @Override
    public MsgConfig conf() {
        return MsgIdBLadder.DETAIL_REQ;
    }
    @Override
    public void action(GameBody game, Role role) throws Exception {
        role.getPvp().ladder.getOppoDetail(this.opponentId, this.robot, this.srvId);
    }


}
